package Data.Goods;

import java.io.Serializable;
import java.sql.Date;
import java.util.ArrayList;

public class Goodstype implements Serializable{
    private Goods goods;
    private int   num;
    
    public Goodstype(Goods goods,int  num){
    	this.goods=goods;
    	this.num=num;
    }

    
    public int getNum(){
    	return num;
    }
    
    public void setNum(int num){
    	this.num=num;
    }
    
    public void addNum(int addnum){
    	num=num+addnum;
    }
    
    public void reduceNum(int reducenum){
    	num=num-reducenum;
    }
    
    public Goods getGoods(){
    	return goods;
    }
    

 
}
